//
//  WaybillRate.m
//  express
//
//  Created by dd on 12/17/14.
//  Copyright (c) 2014 yunqi. All rights reserved.
//

#import "WaybillRate.h"
#import "BaseModel.h"
#import "User.h"

@implementation WaybillRate

- (User *)user
{
    if (!_user)
    {
        if (_data[@"user"])
        {
            _user = [[User alloc] initWithData:_data[@"user"]];
        }
    }
    
    return _user;
}

- (NSString *)content
{
    return [self stringForKey:@"content"];
}

- (NSString *)created
{
    return [self stringForKey:@"created"];
}

- (NSString *)rate
{
    return [self stringForKey:@"rate"];
}
@end
